using System;
using UnityEngine;

[Serializable]
public class mainmenubuttons_0020credits : MonoBehaviour
{
	public AudioClip clip;

	public Texture pressed;

	public Texture unpressed;

	public string loadscene;

	public GUITexture gui;

	public int guinsx;

	public int guinsy;

	public int guinsw;

	public int guinsh;

	public int fingerCount;

	public GameObject Credits;

	public int state;

	public mainmenubuttons_0020credits()
	{
		loadscene = "arena1";
	}

	public void Start()
	{
		state = 1;
	}

	public void Update()
	{
		if (UnityEngine.Input.touchCount > 0)
		{
			Touch touch = Input.touches[0];
			if (touch.phase == TouchPhase.Began && GetComponent<GUITexture>().HitTest(touch.position))
			{
				AudioSource.PlayClipAtPoint(clip, Camera.main.transform.position);
				gui.texture = pressed;
				Credits.SetActiveRecursively(state: true);
			}
		}
		if (state == 1 && UnityEngine.Input.touchCount == 0)
		{
			gui.texture = unpressed;
		}
	}

	public void Main()
	{
	}
}
